{%extends 'base.html' %}
{% block extra_link %}
{% load static %}
<link href="{%static '/css/blog.css' %}" rel="stylesheet" type="text/css" />
{% endblock %}
{% block main_body %}
	<div id="blogs_main">
		<div id="tagbasket">
				<h2>标签云</h2>
			<div class="taglist">
			{% autoescape off %}
			{% for tag in taglist %}
				{% load tools %}
				{% tagblock tag %}
			{% endfor %}
			{% endautoescape %}
			</div>
		</div>
		<div id="blogbasket">
			<div class="subline">
				<ul>
					<li class="bg-active">全部文章</li>
					<li>最近更新</li>
				</ul>
			</div>
			<div id="archive">归档</div>
			<div id="bloglist">
			{% for blog in bloglist %}
			<div class="ablog">
					<div class="blog_mess">
						<a href="/a/{{blog.id}}"><strong class="blog_title"> {{blog.title}}</strong></a>
						<p>
						{% load tools %}
						<span class="views"><img src={%static 'img/views.png'%} alt='wtf' > {% get_visits blog %}</span>
						发布时间：{{blog.createtime}} 最后更新时间：{{blog.lasttime}}
						</p>
					</div>
			</div>
			{% endfor %}
			</div>
		</div>
	</div>
	<div id="extra_list">
		<p class="extra-title">最新文章</p>
		<p>我也不知道放什么</p>
	</div>
{% endblock %}